cod_set_user_speed

Syntax

native cod_set_user_speed(id, Float:value, type = ROUND);

Usage

id
Player index
value
Bonus value
type
Bonus type, valid types are:
CLASS - for class
ITEM - for item
ADDITIONAL - static bonus
ROUND - until round end
DEATH - until death
DAMAGE_GIVEN - until player damage enemy
DAMAGE_TAKEN - until player is hurt

Description

Sets player speed bonus.

Note

Player speed is calculated from base speed, condition bonus and speed bonus.

Note

Higher speed bonus has priority, but still will be reduced by bonuses with value lower than 0.

Note

Set value to COD_FREEZE (0.1) to prevent player from moving.

Return

This function has no return value.